% ECGTTPLOT         Output graph of ECG to GUI
%
% Function:
%
% Input:   Data points obtained by ECG recording device or any 
%          intermediate stage of software filters
%
% Output:  Graph for representation
%
% Copyright: Group 8
% Modified at 20th Oct 2010
%-------------------------------------------------------------------------
function ecgttplot = ecgttplot(data)

t = (0:length(v)-1)/553.6;
plot(t,data);
%% Setting axes
% Auto for y-axis
% Fixed X-axis value
ylim('auto');
grid on
%% Labeling axes 
ylabel('Magnitude')
xlabel('time / s')
%% Setting artistic properties
set(findobj('Type','line'),'Color','r','linewidth',2)
%set(gca,'Color','k')